package cn.codesea.housework_user.net.service;

import java.util.Map;

import cn.codesea.housework_user.entity.Service;
import cn.codesea.housework_user.net.data.Result;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface SerService {

    @FormUrlEncoded
    @POST("service_getlist")
    Call<Result> getService(@Field("pid") int pid);

    @POST("service_getlist_all")
    Call<Result> getService();

    @POST("service_getlist_child")
    Call<Result> getChildService();

    @POST("service_update")
    Call<Result> updateService(@Body Service service);

}
